using UnityEngine;
using UnityEngine.UI;

public class StatusBar : MonoBehaviour
{
	public Text dayView;

	public Text healthView;

	public Text balanceView;

	public Text goldView;

	private void FixedUpdate()
	{
		healthView.text = DO.Campaign.playerHealth / Config.playerMaxHealth * 100f + "%";
		balanceView.text = "$" + DO.Campaign.balance.ToString("n0");
		goldView.text = DO.Player.gold.ToString("n0");
	}

	public void GoToMainMenu()
	{
		Initiate.Fade("Main", Color.black, 5f);
	}

	public void Setting()
	{
	}
}
